| Fully Qualified Name: | CodeIgniter\Session\Handlers\MemcachedHandler |
| Extends: | BaseHandler |
| Implements: | SessionHandlerInterface |
Session handler using Memcache for persistence
| Name | Description | Defined By |
|---|---|---|
| __construct() | Constructor | MemcachedHandler |
| close() | Close | MemcachedHandler |
| destroy() | Destroy | MemcachedHandler |
| gc() | Garbage Collector | MemcachedHandler |
| open() | Open | MemcachedHandler |
| read() | Read | MemcachedHandler |
| write() | Write | MemcachedHandler |
Constructor
| Parameter Name | Type | Description |
|---|---|---|
| $config | \BaseConfig | |
| $ipAddress | string |
Returns:
Close
Releases locks and closes connection.
Returns: bool
Destroy
Destroys the current session.
| Parameter Name | Type | Description |
|---|---|---|
| $session_id | string | Session |
Returns: bool
Garbage Collector
Deletes expired sessions
| Parameter Name | Type | Description |
|---|---|---|
| $maxlifetime | int | Maximum |
Returns: bool
Open
Sanitizes save_path and initializes connections.
| Parameter Name | Type | Description |
|---|---|---|
| $save_path | string | Server |
| $name | string | Session |
Returns: bool
Read
Reads session data and acquires a lock
| Parameter Name | Type | Description |
|---|---|---|
| $sessionID | string | Session |
Returns: string Serialized session data
Write
Writes (create / update) session data
| Parameter Name | Type | Description |
|---|---|---|
| $sessionID | string | Session |
| $sessionData | string | Serialized |
Returns: bool